<footer class="footer hidden-xs no-padder text-center-nav-xs">
    <div class="bg hidden-xs ">
        {if condition="$User.username eq '0'"}
        <div class="dropdown dropup wrapper-sm clearfix">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      <span class="thumb-sm avatar pull-left m-l-xs">
                        <img src="" class="dker" alt="">
                          <!--<i class="on b-black"></i>-->
                      </span>
                <span class="hidden-nav-xs clear">
                        <span class="block m-l">
                          <strong class="font-bold text-lt">未登录</strong>
                          <b class="caret"></b>
                        </span>
                        <span class="text-muted text-xs block m-l">请点击注册或登录</span>
                      </span>
            </a>
            <ul class="dropdown-menu animated fadeInRight aside text-left">
                <li>
                    <a href="">Help</a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="/index.php/index/login">登录</a>
                </li>
                <li>
                    <a href="/index.php/index/login/signup">注册</a>
                </li>
            </ul>
        </div>
        {else /}
        <div class="dropdown dropup wrapper-sm clearfix">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      <span class="thumb-sm avatar pull-left m-l-xs">
                        <img src="{$User.photo}" class="dker" alt="">
                          <!--<i class="on b-black"></i>-->
                      </span>
                <span class="hidden-nav-xs clear">
                        <span class="block m-l">
                          <strong class="font-bold text-lt">{$User.username}</strong>
                          <b class="caret"></b>
                        </span>
                        <!--<span class="text-muted text-xs block m-l">Art Director</span>-->
                      </span>
            </a>
            <ul class="dropdown-menu animated fadeInRight aside text-left">
                <li>
                    <span class="arrow bottom hidden-nav-xs"></span>
                    <a href="/index.php/index/account/setting">个人设置</a>
                </li>
                <li>
                    <a href="/index.php/index/account">我的主页</a>
                </li>
                <!--<li>-->
                    <!--<a href="#">-->
                        <!--<span class="badge bg-danger pull-right">3</span>-->
                        <!--我的消息-->
                    <!--</a>-->
                <!--</li>-->
                <li>
                    <a href="">使用帮助</a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="/index.php/index/login/logout"  >退出登录</a>
                </li>
            </ul>
        </div>
        {/if}

    </div>
</footer>